from pydantic import BaseModel


class Account(BaseModel):
    user_name: str
    user_phone: str
    password: str
    payment_password: str


class TaoBaoOrder(Account):
    shop_url: str
    shop_name: str
    sub_name: str = None


class TaoBaoOrderTask(TaoBaoOrder):
    order_id: str
    android_ip: str
    phone_code: str = ''


class TaoBaoOrderTaskResponse(TaoBaoOrderTask):
    status: str
    order_number: str
    complete: bool
    update_time: str
    processing: bool
    need_phone_code: bool
